home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Icons.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  17.7 KB  |  692 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Icons.a
  3. ;
  4. ;    Contains:    Icon Utilities Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
  21. __ICONS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'QuickdrawText.a'                                    ;
  34.  
  35. ; The following are icons for which there are both icon suites and SICNs. 
  36. kGenericDocumentIconResource    EQU        -4000
  37. kGenericStationeryIconResource    EQU        -3985
  38. kGenericEditionFileIconResource    EQU        -3989
  39. kGenericApplicationIconResource    EQU        -3996
  40. kGenericDeskAccessoryIconResource EQU        -3991
  41. kGenericFolderIconResource        EQU        -3999
  42. kPrivateFolderIconResource        EQU        -3994
  43. kFloppyIconResource                EQU        -3998
  44. kTrashIconResource                EQU        -3993
  45. kGenericRAMDiskIconResource        EQU        -3988
  46. kGenericCDROMIconResource        EQU        -3987
  47. ; The following are icons for which there are SICNs only. 
  48. kDesktopIconResource            EQU        -3992
  49. kOpenFolderIconResource            EQU        -3997
  50. kGenericHardDiskIconResource    EQU        -3995
  51. kGenericFileServerIconResource    EQU        -3972
  52. kGenericSuitcaseIconResource    EQU        -3970
  53. kGenericMoverObjectIconResource    EQU        -3969
  54. ; The following are icons for which there are icon suites only. 
  55. kGenericPreferencesIconResource    EQU        -3971
  56. kGenericQueryDocumentIconResource EQU        -16506
  57. kGenericExtensionIconResource    EQU        -16415
  58. kSystemFolderIconResource        EQU        -3983
  59. kAppleMenuFolderIconResource    EQU        -3982
  60.  
  61. ; Obsolete. Use named constants defined above. 
  62. genericDocumentIconResource        EQU        kGenericDocumentIconResource
  63. genericStationeryIconResource    EQU        kGenericStationeryIconResource
  64. genericEditionFileIconResource    EQU        kGenericEditionFileIconResource
  65. genericApplicationIconResource    EQU        kGenericApplicationIconResource
  66. genericDeskAccessoryIconResource EQU        kGenericDeskAccessoryIconResource
  67. genericFolderIconResource        EQU        kGenericFolderIconResource
  68. privateFolderIconResource        EQU        kPrivateFolderIconResource
  69. floppyIconResource                EQU        kFloppyIconResource
  70. trashIconResource                EQU        kPrivateFolderIconResource
  71. genericRAMDiskIconResource        EQU        kGenericRAMDiskIconResource
  72. genericCDROMIconResource        EQU        kGenericCDROMIconResource
  73. desktopIconResource                EQU        kDesktopIconResource
  74. openFolderIconResource            EQU        kOpenFolderIconResource
  75. genericHardDiskIconResource        EQU        kGenericHardDiskIconResource
  76. genericFileServerIconResource    EQU        kGenericFileServerIconResource
  77. genericSuitcaseIconResource        EQU        kGenericSuitcaseIconResource
  78. genericMoverObjectIconResource    EQU        kGenericMoverObjectIconResource
  79. genericPreferencesIconResource    EQU        kGenericPreferencesIconResource
  80. genericQueryDocumentIconResource EQU        kGenericQueryDocumentIconResource
  81. genericExtensionIconResource    EQU        kGenericExtensionIconResource
  82. systemFolderIconResource        EQU        kSystemFolderIconResource
  83. appleMenuFolderIconResource        EQU        kAppleMenuFolderIconResource
  84.  
  85. kStartupFolderIconResource        EQU        -3981
  86. kOwnedFolderIconResource        EQU        -3980
  87. kDropFolderIconResource            EQU        -3979
  88. kSharedFolderIconResource        EQU        -3978
  89. kMountedFolderIconResource        EQU        -3977
  90. kControlPanelFolderIconResource    EQU        -3976
  91. kPrintMonitorFolderIconResource    EQU        -3975
  92. kPreferencesFolderIconResource    EQU        -3974
  93. kExtensionsFolderIconResource    EQU        -3973
  94. kFontsFolderIconResource        EQU        -3968
  95. kFullTrashIconResource            EQU        -3984
  96.  
  97. ; Obsolete. Use named constants defined above. 
  98. startupFolderIconResource        EQU        kStartupFolderIconResource
  99. ownedFolderIconResource            EQU        kOwnedFolderIconResource
  100. dropFolderIconResource            EQU        kDropFolderIconResource
  101. sharedFolderIconResource        EQU        kSharedFolderIconResource
  102. mountedFolderIconResource        EQU        kMountedFolderIconResource
  103. controlPanelFolderIconResource    EQU        kControlPanelFolderIconResource
  104. printMonitorFolderIconResource    EQU        kPrintMonitorFolderIconResource
  105. preferencesFolderIconResource    EQU        kPreferencesFolderIconResource
  106. extensionsFolderIconResource    EQU        kExtensionsFolderIconResource
  107. fontsFolderIconResource            EQU        kFontsFolderIconResource
  108. fullTrashIconResource            EQU        kFullTrashIconResource
  109.  
  110. kLarge1BitMask                    EQU        'ICN#'
  111. kLarge4BitData                    EQU        'icl4'
  112. kLarge8BitData                    EQU        'icl8'
  113. kSmall1BitMask                    EQU        'ics#'
  114. kSmall4BitData                    EQU        'ics4'
  115. kSmall8BitData                    EQU        'ics8'
  116. kMini1BitMask                    EQU        'icm#'
  117. kMini4BitData                    EQU        'icm4'
  118. kMini8BitData                    EQU        'icm8'
  119.  
  120. ; Obsolete. Use names defined above. 
  121. large1BitMask                    EQU        kLarge1BitMask
  122. large4BitData                    EQU        kLarge4BitData
  123. large8BitData                    EQU        kLarge8BitData
  124. small1BitMask                    EQU        kSmall1BitMask
  125. small4BitData                    EQU        kSmall4BitData
  126. small8BitData                    EQU        kSmall8BitData
  127. mini1BitMask                    EQU        kMini1BitMask
  128. mini4BitData                    EQU        kMini4BitData
  129. mini8BitData                    EQU        kMini8BitData
  130.  
  131. ;  alignment type values 
  132. kAlignNone                        EQU        $0
  133. kAlignVerticalCenter            EQU        $1
  134. kAlignTop                        EQU        $2
  135. kAlignBottom                    EQU        $3
  136. kAlignHorizontalCenter            EQU        $4
  137. kAlignAbsoluteCenter            EQU        kAlignVerticalCenter | kAlignHorizontalCenter
  138. kAlignCenterTop                    EQU        kAlignTop | kAlignHorizontalCenter
  139. kAlignCenterBottom                EQU        kAlignBottom | kAlignHorizontalCenter
  140. kAlignLeft                        EQU        $8
  141. kAlignCenterLeft                EQU        kAlignVerticalCenter | kAlignLeft
  142. kAlignTopLeft                    EQU        kAlignTop | kAlignLeft
  143. kAlignBottomLeft                EQU        kAlignBottom | kAlignLeft
  144. kAlignRight                        EQU        $C
  145. kAlignCenterRight                EQU        kAlignVerticalCenter | kAlignRight
  146. kAlignTopRight                    EQU        kAlignTop | kAlignRight
  147. kAlignBottomRight                EQU        kAlignBottom | kAlignRight
  148.  
  149. ; Obsolete. Use names defined above. 
  150. atNone                            EQU        kAlignNone
  151. atVerticalCenter                EQU        kAlignVerticalCenter
  152. atTop                            EQU        kAlignTop
  153. atBottom                        EQU        kAlignBottom
  154. atHorizontalCenter                EQU        kAlignHorizontalCenter
  155. atAbsoluteCenter                EQU        kAlignAbsoluteCenter
  156. atCenterTop                        EQU        kAlignCenterTop
  157. atCenterBottom                    EQU        kAlignCenterBottom
  158. atLeft                            EQU        kAlignLeft
  159. atCenterLeft                    EQU        kAlignCenterLeft
  160. atTopLeft                        EQU        kAlignTopLeft
  161. atBottomLeft                    EQU        kAlignBottomLeft
  162. atRight                            EQU        kAlignRight
  163. atCenterRight                    EQU        kAlignCenterRight
  164. atTopRight                        EQU        kAlignTopRight
  165. atBottomRight                    EQU        kAlignBottomRight
  166.  
  167. ; typedef SInt16             IconAlignmentType
  168. ;  transform type values  
  169.  
  170. kTransformNone                    EQU        $0
  171. kTransformDisabled                EQU        $1
  172. kTransformOffline                EQU        $2
  173. kTransformOpen                    EQU        $3
  174. kTransformLabel1                EQU        $0100
  175. kTransformLabel2                EQU        $0200
  176. kTransformLabel3                EQU        $0300
  177. kTransformLabel4                EQU        $0400
  178. kTransformLabel5                EQU        $0500
  179. kTransformLabel6                EQU        $0600
  180. kTransformLabel7                EQU        $0700
  181. kTransformSelected                EQU        $4000
  182. kTransformSelectedDisabled        EQU        kTransformSelected | kTransformDisabled
  183. kTransformSelectedOffline        EQU        kTransformSelected | kTransformOffline
  184. kTransformSelectedOpen            EQU        kTransformSelected | kTransformOpen
  185.  
  186. ; Obsolete. Use names defined above. 
  187. ttNone                            EQU        kTransformNone
  188. ttDisabled                        EQU        kTransformDisabled
  189. ttOffline                        EQU        kTransformOffline
  190. ttOpen                            EQU        kTransformOpen
  191. ttLabel1                        EQU        kTransformLabel1
  192. ttLabel2                        EQU        kTransformLabel2
  193. ttLabel3                        EQU        kTransformLabel3
  194. ttLabel4                        EQU        kTransformLabel4
  195. ttLabel5                        EQU        kTransformLabel5
  196. ttLabel6                        EQU        kTransformLabel6
  197. ttLabel7                        EQU        kTransformLabel7
  198. ttSelected                        EQU        kTransformSelected
  199. ttSelectedDisabled                EQU        kTransformSelectedDisabled
  200. ttSelectedOffline                EQU        kTransformSelectedOffline
  201. ttSelectedOpen                    EQU        kTransformSelectedOpen
  202.  
  203. ; typedef SInt16             IconTransformType
  204. ;  Selector mask values  
  205.  
  206. kSelectorLarge1Bit                EQU        $00000001
  207. kSelectorLarge4Bit                EQU        $00000002
  208. kSelectorLarge8Bit                EQU        $00000004
  209. kSelectorSmall1Bit                EQU        $00000100
  210. kSelectorSmall4Bit                EQU        $00000200
  211. kSelectorSmall8Bit                EQU        $00000400
  212. kSelectorMini1Bit                EQU        $00010000
  213. kSelectorMini4Bit                EQU        $00020000
  214. kSelectorMini8Bit                EQU        $00040000
  215. kSelectorAllLargeData            EQU        $000000FF
  216. kSelectorAllSmallData            EQU        $0000FF00
  217. kSelectorAllMiniData            EQU        $00FF0000
  218. kSelectorAll1BitData            EQU        kSelectorLarge1Bit | kSelectorSmall1Bit | kSelectorMini1Bit
  219. kSelectorAll4BitData            EQU        kSelectorLarge4Bit | kSelectorSmall4Bit | kSelectorMini4Bit
  220. kSelectorAll8BitData            EQU        kSelectorLarge8Bit | kSelectorSmall8Bit | kSelectorMini8Bit
  221. kSelectorAllAvailableData        EQU        $FFFFFFFF
  222.  
  223. ; Obsolete. Use names defined above. 
  224. svLarge1Bit                        EQU        kSelectorLarge1Bit
  225. svLarge4Bit                        EQU        kSelectorLarge4Bit
  226. svLarge8Bit                        EQU        kSelectorLarge8Bit
  227. svSmall1Bit                        EQU        kSelectorSmall1Bit
  228. svSmall4Bit                        EQU        kSelectorSmall4Bit
  229. svSmall8Bit                        EQU        kSelectorSmall8Bit
  230. svMini1Bit                        EQU        kSelectorMini1Bit
  231. svMini4Bit                        EQU        kSelectorMini4Bit
  232. svMini8Bit                        EQU        kSelectorMini8Bit
  233. svAllLargeData                    EQU        kSelectorAllLargeData
  234. svAllSmallData                    EQU        kSelectorAllSmallData
  235. svAllMiniData                    EQU        kSelectorAllMiniData
  236. svAll1BitData                    EQU        kSelectorAll1BitData
  237. svAll4BitData                    EQU        kSelectorAll4BitData
  238. svAll8BitData                    EQU        kSelectorAll8BitData
  239. svAllAvailableData                EQU        kSelectorAllAvailableData
  240.  
  241. ; typedef UInt32             IconSelectorValue
  242. ; typedef IconActionProcPtr  IconAction
  243. ; typedef IconGetterProcPtr  IconGetter
  244.     IF ¬ OLDROUTINELOCATIONS  THEN
  245. CIcon                     RECORD    0
  246. iconPMap                 ds     PixMap    ; offset: $0 (0)        ;the icon's pixMap
  247. iconMask                 ds     BitMap    ; offset: $32 (50)        ;the icon's mask
  248. iconBMap                 ds     BitMap    ; offset: $40 (64)        ;the icon's bitMap
  249. iconData                 ds.l   1        ; offset: $4E (78)        ;the icon's data
  250. iconMaskData             ds.w   1        ; offset: $52 (82)        ;icon's mask and BitMap data
  251. sizeof                     EQU *            ; size:   $54 (84)
  252.                         ENDR
  253.  
  254. ; typedef struct CIcon         CIcon, *CIconPtr, **CIconHandle
  255. ;
  256. ; pascal CIconHandle GetCIcon(SInt16 iconID)
  257. ;
  258.     IF ¬ GENERATINGCFM THEN
  259.         _GetCIcon:    OPWORD    $AA1E
  260.     ELSE
  261.         IMPORT_CFM_FUNCTION    GetCIcon
  262.     ENDIF
  263.  
  264. ;
  265. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  266. ;
  267.     IF ¬ GENERATINGCFM THEN
  268.         _PlotCIcon:    OPWORD    $AA1F
  269.     ELSE
  270.         IMPORT_CFM_FUNCTION    PlotCIcon
  271.     ENDIF
  272.  
  273. ;
  274. ; pascal void DisposeCIcon(CIconHandle theIcon)
  275. ;
  276.     IF ¬ GENERATINGCFM THEN
  277.         _DisposeCIcon:    OPWORD    $AA25
  278.     ELSE
  279.         IMPORT_CFM_FUNCTION    DisposeCIcon
  280.     ENDIF
  281.  
  282.     ENDIF
  283. ;
  284. ; pascal Handle GetIcon(SInt16 iconID)
  285. ;
  286.     IF ¬ GENERATINGCFM THEN
  287.         _GetIcon:    OPWORD    $A9BB
  288.     ELSE
  289.         IMPORT_CFM_FUNCTION    GetIcon
  290.     ENDIF
  291.  
  292. ;
  293. ; pascal void PlotIcon(const Rect *theRect, Handle theIcon)
  294. ;
  295.     IF ¬ GENERATINGCFM THEN
  296.         _PlotIcon:    OPWORD    $A94B
  297.     ELSE
  298.         IMPORT_CFM_FUNCTION    PlotIcon
  299.     ENDIF
  300.  
  301. ;
  302. ; pascal OSErr PlotIconID(const Rect *theRect, IconAlignmentType align, IconTransformType transform, SInt16 theResID)
  303. ;
  304.     IF ¬ GENERATINGCFM THEN
  305.         Macro
  306.         _PlotIconID
  307.             move.w    #$0500,d0
  308.             dc.w     $ABC9
  309.         EndM
  310.     ELSE
  311.         IMPORT_CFM_FUNCTION    PlotIconID
  312.     ENDIF
  313.  
  314. ;
  315. ; pascal OSErr NewIconSuite(Handle *theIconSuite)
  316. ;
  317.     IF ¬ GENERATINGCFM THEN
  318.         Macro
  319.         _NewIconSuite
  320.             move.w    #$0207,d0
  321.             dc.w     $ABC9
  322.         EndM
  323.     ELSE
  324.         IMPORT_CFM_FUNCTION    NewIconSuite
  325.     ENDIF
  326.  
  327. ;
  328. ; pascal OSErr AddIconToSuite(Handle theIconData, Handle theSuite, ResType theType)
  329. ;
  330.     IF ¬ GENERATINGCFM THEN
  331.         Macro
  332.         _AddIconToSuite
  333.             move.w    #$0608,d0
  334.             dc.w     $ABC9
  335.         EndM
  336.     ELSE
  337.         IMPORT_CFM_FUNCTION    AddIconToSuite
  338.     ENDIF
  339.  
  340. ;
  341. ; pascal OSErr GetIconFromSuite(Handle *theIconData, Handle theSuite, ResType theType)
  342. ;
  343.     IF ¬ GENERATINGCFM THEN
  344.         Macro
  345.         _GetIconFromSuite
  346.             move.w    #$0609,d0
  347.             dc.w     $ABC9
  348.         EndM
  349.     ELSE
  350.         IMPORT_CFM_FUNCTION    GetIconFromSuite
  351.     ENDIF
  352.  
  353. ;
  354. ; pascal OSErr ForEachIconDo(Handle theSuite, IconSelectorValue selector, IconActionUPP action, void *yourDataPtr)
  355. ;
  356.     IF ¬ GENERATINGCFM THEN
  357.         Macro
  358.         _ForEachIconDo
  359.             move.w    #$080A,d0
  360.             dc.w     $ABC9
  361.         EndM
  362.     ELSE
  363.         IMPORT_CFM_FUNCTION    ForEachIconDo
  364.     ENDIF
  365.  
  366. ;
  367. ; pascal OSErr GetIconSuite(Handle *theIconSuite, SInt16 theResID, IconSelectorValue selector)
  368. ;
  369.     IF ¬ GENERATINGCFM THEN
  370.         Macro
  371.         _GetIconSuite
  372.             move.w    #$0501,d0
  373.             dc.w     $ABC9
  374.         EndM
  375.     ELSE
  376.         IMPORT_CFM_FUNCTION    GetIconSuite
  377.     ENDIF
  378.  
  379. ;
  380. ; pascal OSErr DisposeIconSuite(Handle theIconSuite, Boolean disposeData)
  381. ;
  382.     IF ¬ GENERATINGCFM THEN
  383.         Macro
  384.         _DisposeIconSuite
  385.             move.w    #$0302,d0
  386.             dc.w     $ABC9
  387.         EndM
  388.     ELSE
  389.         IMPORT_CFM_FUNCTION    DisposeIconSuite
  390.     ENDIF
  391.  
  392. ;
  393. ; pascal OSErr PlotIconSuite(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theIconSuite)
  394. ;
  395.     IF ¬ GENERATINGCFM THEN
  396.         Macro
  397.         _PlotIconSuite
  398.             move.w    #$0603,d0
  399.             dc.w     $ABC9
  400.         EndM
  401.     ELSE
  402.         IMPORT_CFM_FUNCTION    PlotIconSuite
  403.     ENDIF
  404.  
  405. ;
  406. ; pascal OSErr MakeIconCache(Handle *theHandle, IconGetterUPP makeIcon, void *yourDataPtr)
  407. ;
  408.     IF ¬ GENERATINGCFM THEN
  409.         Macro
  410.         _MakeIconCache
  411.             move.w    #$0604,d0
  412.             dc.w     $ABC9
  413.         EndM
  414.     ELSE
  415.         IMPORT_CFM_FUNCTION    MakeIconCache
  416.     ENDIF
  417.  
  418. ;
  419. ; pascal OSErr LoadIconCache(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theIconCache)
  420. ;
  421.     IF ¬ GENERATINGCFM THEN
  422.         Macro
  423.         _LoadIconCache
  424.             move.w    #$0606,d0
  425.             dc.w     $ABC9
  426.         EndM
  427.     ELSE
  428.         IMPORT_CFM_FUNCTION    LoadIconCache
  429.     ENDIF
  430.  
  431. ;
  432. ; pascal OSErr PlotIconMethod(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconGetterUPP theMethod, void *yourDataPtr)
  433. ;
  434.     IF ¬ GENERATINGCFM THEN
  435.         Macro
  436.         _PlotIconMethod
  437.             move.w    #$0805,d0
  438.             dc.w     $ABC9
  439.         EndM
  440.     ELSE
  441.         IMPORT_CFM_FUNCTION    PlotIconMethod
  442.     ENDIF
  443.  
  444. ;
  445. ; pascal OSErr GetLabel(SInt16 labelNumber, RGBColor *labelColor, Str255 labelString)
  446. ;
  447.     IF ¬ GENERATINGCFM THEN
  448.         Macro
  449.         _GetLabel
  450.             move.w    #$050B,d0
  451.             dc.w     $ABC9
  452.         EndM
  453.     ELSE
  454.         IMPORT_CFM_FUNCTION    GetLabel
  455.     ENDIF
  456.  
  457. ;
  458. ; pascal Boolean PtInIconID(Point testPt, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  459. ;
  460.     IF ¬ GENERATINGCFM THEN
  461.         Macro
  462.         _PtInIconID
  463.             move.w    #$060D,d0
  464.             dc.w     $ABC9
  465.         EndM
  466.     ELSE
  467.         IMPORT_CFM_FUNCTION    PtInIconID
  468.     ENDIF
  469.  
  470. ;
  471. ; pascal Boolean PtInIconSuite(Point testPt, const Rect *iconRect, IconAlignmentType align, Handle theIconSuite)
  472. ;
  473.     IF ¬ GENERATINGCFM THEN
  474.         Macro
  475.         _PtInIconSuite
  476.             move.w    #$070E,d0
  477.             dc.w     $ABC9
  478.         EndM
  479.     ELSE
  480.         IMPORT_CFM_FUNCTION    PtInIconSuite
  481.     ENDIF
  482.  
  483. ;
  484. ; pascal Boolean PtInIconMethod(Point testPt, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  485. ;
  486.     IF ¬ GENERATINGCFM THEN
  487.         Macro
  488.         _PtInIconMethod
  489.             move.w    #$090F,d0
  490.             dc.w     $ABC9
  491.         EndM
  492.     ELSE
  493.         IMPORT_CFM_FUNCTION    PtInIconMethod
  494.     ENDIF
  495.  
  496. ;
  497. ; pascal Boolean RectInIconID(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  498. ;
  499.     IF ¬ GENERATINGCFM THEN
  500.         Macro
  501.         _RectInIconID
  502.             move.w    #$0610,d0
  503.             dc.w     $ABC9
  504.         EndM
  505.     ELSE
  506.         IMPORT_CFM_FUNCTION    RectInIconID
  507.     ENDIF
  508.  
  509. ;
  510. ; pascal Boolean RectInIconSuite(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, Handle theIconSuite)
  511. ;
  512.     IF ¬ GENERATINGCFM THEN
  513.         Macro
  514.         _RectInIconSuite
  515.             move.w    #$0711,d0
  516.             dc.w     $ABC9
  517.         EndM
  518.     ELSE
  519.         IMPORT_CFM_FUNCTION    RectInIconSuite
  520.     ENDIF
  521.  
  522. ;
  523. ; pascal Boolean RectInIconMethod(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  524. ;
  525.     IF ¬ GENERATINGCFM THEN
  526.         Macro
  527.         _RectInIconMethod
  528.             move.w    #$0912,d0
  529.             dc.w     $ABC9
  530.         EndM
  531.     ELSE
  532.         IMPORT_CFM_FUNCTION    RectInIconMethod
  533.     ENDIF
  534.  
  535. ;
  536. ; pascal OSErr IconIDToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  537. ;
  538.     IF ¬ GENERATINGCFM THEN
  539.         Macro
  540.         _IconIDToRgn
  541.             move.w    #$0613,d0
  542.             dc.w     $ABC9
  543.         EndM
  544.     ELSE
  545.         IMPORT_CFM_FUNCTION    IconIDToRgn
  546.     ENDIF
  547.  
  548. ;
  549. ; pascal OSErr IconSuiteToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, Handle theIconSuite)
  550. ;
  551.     IF ¬ GENERATINGCFM THEN
  552.         Macro
  553.         _IconSuiteToRgn
  554.             move.w    #$0714,d0
  555.             dc.w     $ABC9
  556.         EndM
  557.     ELSE
  558.         IMPORT_CFM_FUNCTION    IconSuiteToRgn
  559.     ENDIF
  560.  
  561. ;
  562. ; pascal OSErr IconMethodToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  563. ;
  564.     IF ¬ GENERATINGCFM THEN
  565.         Macro
  566.         _IconMethodToRgn
  567.             move.w    #$0915,d0
  568.             dc.w     $ABC9
  569.         EndM
  570.     ELSE
  571.         IMPORT_CFM_FUNCTION    IconMethodToRgn
  572.     ENDIF
  573.  
  574. ;
  575. ; pascal OSErr SetSuiteLabel(Handle theSuite, SInt16 theLabel)
  576. ;
  577.     IF ¬ GENERATINGCFM THEN
  578.         Macro
  579.         _SetSuiteLabel
  580.             move.w    #$0316,d0
  581.             dc.w     $ABC9
  582.         EndM
  583.     ELSE
  584.         IMPORT_CFM_FUNCTION    SetSuiteLabel
  585.     ENDIF
  586.  
  587. ;
  588. ; pascal SInt16 GetSuiteLabel(Handle theSuite)
  589. ;
  590.     IF ¬ GENERATINGCFM THEN
  591.         Macro
  592.         _GetSuiteLabel
  593.             move.w    #$0217,d0
  594.             dc.w     $ABC9
  595.         EndM
  596.     ELSE
  597.         IMPORT_CFM_FUNCTION    GetSuiteLabel
  598.     ENDIF
  599.  
  600. ;
  601. ; pascal OSErr GetIconCacheData(Handle theCache, void **theData)
  602. ;
  603.     IF ¬ GENERATINGCFM THEN
  604.         Macro
  605.         _GetIconCacheData
  606.             move.w    #$0419,d0
  607.             dc.w     $ABC9
  608.         EndM
  609.     ELSE
  610.         IMPORT_CFM_FUNCTION    GetIconCacheData
  611.     ENDIF
  612.  
  613. ;
  614. ; pascal OSErr SetIconCacheData(Handle theCache, void *theData)
  615. ;
  616.     IF ¬ GENERATINGCFM THEN
  617.         Macro
  618.         _SetIconCacheData
  619.             move.w    #$041A,d0
  620.             dc.w     $ABC9
  621.         EndM
  622.     ELSE
  623.         IMPORT_CFM_FUNCTION    SetIconCacheData
  624.     ENDIF
  625.  
  626. ;
  627. ; pascal OSErr GetIconCacheProc(Handle theCache, IconGetterUPP *theProc)
  628. ;
  629.     IF ¬ GENERATINGCFM THEN
  630.         Macro
  631.         _GetIconCacheProc
  632.             move.w    #$041B,d0
  633.             dc.w     $ABC9
  634.         EndM
  635.     ELSE
  636.         IMPORT_CFM_FUNCTION    GetIconCacheProc
  637.     ENDIF
  638.  
  639. ;
  640. ; pascal OSErr SetIconCacheProc(Handle theCache, IconGetterUPP theProc)
  641. ;
  642.     IF ¬ GENERATINGCFM THEN
  643.         Macro
  644.         _SetIconCacheProc
  645.             move.w    #$041C,d0
  646.             dc.w     $ABC9
  647.         EndM
  648.     ELSE
  649.         IMPORT_CFM_FUNCTION    SetIconCacheProc
  650.     ENDIF
  651.  
  652. ;
  653. ; pascal OSErr PlotIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theIcon)
  654. ;
  655.     IF ¬ GENERATINGCFM THEN
  656.         Macro
  657.         _PlotIconHandle
  658.             move.w    #$061D,d0
  659.             dc.w     $ABC9
  660.         EndM
  661.     ELSE
  662.         IMPORT_CFM_FUNCTION    PlotIconHandle
  663.     ENDIF
  664.  
  665. ;
  666. ; pascal OSErr PlotSICNHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN)
  667. ;
  668.     IF ¬ GENERATINGCFM THEN
  669.         Macro
  670.         _PlotSICNHandle
  671.             move.w    #$061E,d0
  672.             dc.w     $ABC9
  673.         EndM
  674.     ELSE
  675.         IMPORT_CFM_FUNCTION    PlotSICNHandle
  676.     ENDIF
  677.  
  678. ;
  679. ; pascal OSErr PlotCIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon)
  680. ;
  681.     IF ¬ GENERATINGCFM THEN
  682.         Macro
  683.         _PlotCIconHandle
  684.             move.w    #$061F,d0
  685.             dc.w     $ABC9
  686.         EndM
  687.     ELSE
  688.         IMPORT_CFM_FUNCTION    PlotCIconHandle
  689.     ENDIF
  690.  
  691.     ENDIF ; __ICONS__
  692.